package com.ysw.mapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import java.util.Collection;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ysw.bean.User;


/**
 * @ClassName UserMapper
 * @Description TODO
 * @Author ysw
 * @Date 2021/11/29 13:47
 */
public interface UserMapper extends BaseMapper<User> {
    int insertBatch(@Param("userCollection") Collection<User> userCollection);

    int deleteAll();

    /**
     * selectAllByIdPage
     * @param page
     * @param id
     * @return
     */
    IPage selectAllByIdPage(@Param("page") Page<User> page, @Param("id") Integer id);

}